package org.chat.client.screens;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DecoratedPopupPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
/**
 * Panel d'aide 
 * @author AGRAM Larbi
 *@version 1.1
 */
public class Aide extends DecoratedPopupPanel {
	
	private VerticalPanel outer = new VerticalPanel();
	private HorizontalPanel topPanel = new HorizontalPanel();
	private HorizontalPanel bottomPanel = new HorizontalPanel();
	Button closeButton = new Button("Fermer");
	
	
	
	/**
	 * Panel d'aide 
	 */
	public Aide(){
		
		outer.add(topPanel);
		outer.add(bottomPanel);
		outer.add(closeButton);
		closeButton.addClickHandler(new ClickHandler() {
			public void onClick(ClickEvent event) {
				hide();

			}
		});
		
		topPanel.setWidth("500px");
		bottomPanel.setWidth("400px");
		setWidget(outer);
		bottomPanel.add(new HTML("<H3>Aide:</H3> <H4>Voir le Manuel d'utilisation </H4>"));
		
	}

}
